{ //=========Macro generated from canvas: c1/c1 //========= (Wed Aug 16 11:24:01 2006) by ROOT version5.08/00 TCanvas *c1 = new TCanvas("c1", "c1",32,386,700,500); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->Range(-0.153846,0.14,1.12821,0.54); c1->SetFillColor(10); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetLeftMargin(0.12); c1->SetBottomMargin(0.15); c1->SetFrameFillColor(0); // c1->SetFrameLineWidth(2); // c1->SetFrameLineWidth(2); Double_t xAxis[18] = {0, 30, 31.5, 32.5, 37.5, 38.5, 42.5, 43.5, 47.5, 48.5, 55.5, 56.5, 62.5, 63.5, 65, 80, 90, 100}; TH1 *EvsC1 = new TH1F("EvsC1","SigmaE/E vs Cost 1",17, xAxis); EvsC1->SetBinContent(3,0.2540); EvsC1->SetBinContent(5,0.2502); EvsC1->SetBinContent(7,0.2540); EvsC1->SetBinContent(9,0.2486); EvsC1->SetBinContent(11,0.2468); EvsC1->SetBinContent(13,0.2428); EvsC1->SetMarkerColor(4); EvsC1->SetLineColor(4); EvsC1->SetMarkerStyle(24); EvsC1->SetMarkerSize(1.0); g1 = new TGraphErrors(6); g1->SetLineColor(4); g1->SetLineWidth(2); g1->SetLineStyle(2); g1->SetMarkerColor(4); g1->SetMarkerStyle(24); g1->SetMarkerSize(1.0); g1->SetPoint(0,32,0.2540); g1->SetPoint(1,38,0.2502); g1->SetPoint(2,43,0.2540); g1->SetPoint(3,48,0.2486); g1->SetPoint(4,56,0.2468); g1->SetPoint(5,63,0.2428); g1->SetPointError(0,0,0.0036); g1->SetPointError(1,0,0.0047); g1->SetPointError(2,0,0.0046); g1->SetPointError(3,0,0.0034); g1->SetPointError(4,0,0.0032); g1->SetPointError(5,0,0.0031); g11 = new TGraphErrors(6); g11->SetLineColor(4); g11->SetLineWidth(2); g11->SetLineStyle(1); g11->SetMarkerColor(4); g11->SetMarkerStyle(20); g11->SetMarkerSize(1.0); g11->SetPoint(0,32,0.2598); g11->SetPoint(1,38,0.2549); g11->SetPoint(2,43,0.2564); g11->SetPoint(3,48,0.2498); g11->SetPoint(4,56,0.2542); g11->SetPoint(5,63,0.2433); g11->SetPointError(0,0,0.0037); g11->SetPointError(1,0,0.0047); g11->SetPointError(2,0,0.0046); g11->SetPointError(3,0,0.0034); g11->SetPointError(4,0,0.0032); g11->SetPointError(5,0,0.0041); g2 = new TGraphErrors(6); g2->SetLineColor(2); g2->SetLineWidth(2); g2->SetLineStyle(2); g2->SetMarkerColor(2); g2->SetMarkerStyle(25); g2->SetMarkerSize(1.0); g2->SetPoint(0,32,0.3408); g2->SetPoint(1,38,0.3115); g2->SetPoint(2,43,0.3201); g2->SetPoint(3,48,0.3077); g2->SetPoint(4,56,0.3067); g2->SetPoint(5,63,0.2915); g2->SetPointError(0,0,0.0049); g2->SetPointError(1,0,0.0073); g2->SetPointError(2,0,0.0056); g2->SetPointError(3,0,0.0041); g2->SetPointError(4,0,0.0044); g2->SetPointError(5,0,0.0045); g12 = new TGraphErrors(6); g12->SetLineColor(2); g12->SetLineWidth(2); g12->SetLineStyle(1); g12->SetMarkerColor(2); g12->SetMarkerStyle(21); g12->SetMarkerSize(1.0); g12->SetPoint(0,32,0.3313); g12->SetPoint(1,38,0.3102); g12->SetPoint(2,43,0.3175); g12->SetPoint(3,48,0.3073); g12->SetPoint(4,56,0.3095); g12->SetPoint(5,63,0.2913); g12->SetPointError(0,0,0.0048); g12->SetPointError(1,0,0.0072); g12->SetPointError(2,0,0.0058); g12->SetPointError(3,0,0.0042); g12->SetPointError(4,0,0.0044); g12->SetPointError(5,0,0.0041); g3 = new TGraphErrors(6); g3->SetPoint(0,32,0.5265); g3->SetPoint(1,38,0.4804); g3->SetPoint(2,43,0.4551); g3->SetPoint(3,48,0.4351); g3->SetPoint(4,56,0.4149); g3->SetPoint(5,63,0.4049); g3->SetPointError(0,0,0.0114); g3->SetPointError(1,0,0.0140); g3->SetPointError(2,0,0.0082); g3->SetPointError(3,0,0.0056); g3->SetPointError(4,0,0.0064); g3->SetPointError(5,0,0.0074); g3->SetLineColor(6); g3->SetLineWidth(2); g3->SetLineStyle(2); g3->SetMarkerColor(6); g3->SetMarkerStyle(26); g3->SetMarkerSize(1.0); g13 = new TGraphErrors(6); g13->SetPoint(0,32,0.4916); g13->SetPoint(1,38,0.4682); g13->SetPoint(2,43,0.4424); g13->SetPoint(3,48,0.4222); g13->SetPoint(4,56,0.4123); g13->SetPoint(5,63,0.4050); g13->SetPointError(0,0,0.0107); g13->SetPointError(1,0,0.0137); g13->SetPointError(2,0,0.0080); g13->SetPointError(3,0,0.0082); g13->SetPointError(4,0,0.0064); g13->SetPointError(5,0,0.0074); g13->SetLineColor(6); g13->SetLineWidth(2); g13->SetLineStyle(1); g13->SetMarkerColor(6); g13->SetMarkerStyle(22); g13->SetMarkerSize(1.0); g4 = new TGraphErrors(6); g4->SetPoint(0,32,0.7244); g4->SetPoint(1,38,0.616); g4->SetPoint(2,43,0.573); g4->SetPoint(3,48,0.545); g4->SetPoint(4,56,0.540); g4->SetPoint(5,63,0.519); g4->SetPointError(0,0,0.010); g4->SetPointError(1,0,0.011); g4->SetPointError(2,0,0.011); g4->SetPointError(3,0,0.0084); g4->SetPointError(4,0,0.0097); g4->SetPointError(5,0,0.0098); g4->SetLineColor(1); g4->SetLineWidth(2); g4->SetLineStyle(2); g4->SetMarkerColor(1); g4->SetMarkerStyle(24); g4->SetMarkerSize(1.0); g14 = new TGraphErrors(6); g14->SetPoint(0,32,0.634); g14->SetPoint(1,38,0.580); g14->SetPoint(2,43,0.545); g14->SetPoint(3,48,0.522); g14->SetPoint(4,56,0.527); g14->SetPoint(5,63,0.519); g14->SetPointError(0,0,0.0088); g14->SetPointError(1,0,0.010); g14->SetPointError(2,0,0.011); g14->SetPointError(3,0,0.0080); g14->SetPointError(4,0,0.0095); g14->SetPointError(5,0,0.0097); g14->SetLineColor(1); g14->SetLineWidth(2); g14->SetLineStyle(1); g14->SetMarkerColor(1); g14->SetMarkerStyle(20); g14->SetMarkerSize(1.0); EvsC1->SetMinimum(0.2); EvsC1->SetMaximum(0.75); EvsC1->SetStats(0); EvsC1->SetLineColor(4); EvsC1->SetLineWidth(2); EvsC1->GetXaxis()->SetTitle("Number of HCAL Layers"); // EvsC1->GetXaxis()->SetLabelFont(22); EvsC1->GetXaxis()->SetLabelSize(0.05); EvsC1->GetXaxis()->SetTitleSize(0.065); EvsC1->GetXaxis()->SetTitleOffset(0.9); // EvsC1->GetXaxis()->SetTitleFont(22); EvsC1->GetYaxis()->SetNdivisions(505); EvsC1->GetYaxis()->SetTitle("rms_{90}/ #sqrt{E/GeV}"); // EvsC1->GetYaxis()->SetLabelFont(22); EvsC1->GetYaxis()->SetLabelSize(0.05); EvsC1->GetYaxis()->SetTitleSize(0.065); EvsC1->GetYaxis()->SetTitleOffset(0.8); // EvsC1->GetYaxis()->SetTitleFont(22); EvsC1->GetXaxis()->SetRange(2,14); EvsC1->Draw("p"); g1->Draw("pl same"); g11->Draw("pl same"); g2->Draw("pl same"); g12->Draw("pl same"); g3->Draw("pl same"); g13->Draw("pl same"); g4->Draw("pl same"); g14->Draw("pl same"); // TLatex * tex = new TLatex(31,0.77,"Z #rightarrow uds (|cos#theta|<0.7)"); // tex->SetTextFont(22); // tex->SetTextSize(0.06); // tex->SetLineWidth(2); // tex->Draw(); // TLatex * tex = new TLatex(55,0.77,"PandoraPFA v02-02"); //// tex->SetTextFont(22); // tex->SetTextSize(0.05); // tex->SetLineWidth(2); // tex->Draw(); TLegend *leg = new TLegend(0.6,0.71,0.9,0.89,NULL,"brNDC"); // leg->SetTextFont(22); leg->SetTextSize(0.045); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(1); leg->SetFillStyle(0); leg->SetBorderSize(0); TLegendEntry *entry=leg->AddEntry("NULL"," 45 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.25); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","100 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.25); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","180 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(6); entry->SetMarkerStyle(22); entry->SetMarkerSize(1.25); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","250 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.25); entry->SetTextAlign(12); entry->SetTextColor(1); leg->Draw(); Double_t *dum = 0; TPolyLine *pline = new TPolyLine(2,dum,dum,""); pline->SetFillColor(19); pline->SetLineColor(4); pline->SetLineStyle(3); pline->SetLineWidth(1); pline->SetPoint(0,30,0.248); pline->SetPoint(1,65,0.248); pline->Draw(""); TPolyLine *pline = new TPolyLine(2,dum,dum,""); pline->SetFillColor(19); pline->SetLineColor(2); pline->SetLineStyle(3); pline->SetLineWidth(1); pline->SetPoint(0,30,0.3073); pline->SetPoint(1,65,0.3073); pline->Draw(""); TPolyLine *pline = new TPolyLine(2,dum,dum,""); pline->SetFillColor(19); pline->SetLineColor(6); pline->SetLineStyle(3); pline->SetLineWidth(1); pline->SetPoint(0,30,0.422); pline->SetPoint(1,65,0.422); pline->Draw(""); TPolyLine *pline = new TPolyLine(2,dum,dum,""); pline->SetFillColor(19); pline->SetLineColor(1); pline->SetLineStyle(3); pline->SetLineWidth(1); pline->SetPoint(0,30,0.522); pline->SetPoint(1,65,0.522); pline->Draw(""); c1->Modified(); c1->cd(); c1->SetSelected(c1); c1->SaveAs("pfa_hcal.eps"); c1->SaveAs("pfa_hcal.gif"); }